﻿<controls:MetroWindow x:Class="BTM_Client_Application.OptionsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
        Title="OptionsWindow" Height="352" Width="610" MinHeight="200" MinWidth="300" Closing="OptionsWindow_OnClosing" Loaded="OptionsWindow_OnLoaded">

    <controls:MetroWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                <!--<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedTabControl.xaml" />-->
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
                <!--<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/FlatButton.xaml" />-->
                <!--<ResourceDictionary Source="pack://application:,,,/Styles/ButtonStyles.xaml" />-->
                <ResourceDictionary Source="pack://application:,,,/Styles/MyResources.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/GridSplitter.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/TreeViewItem.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/ToolTip.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </controls:MetroWindow.Resources>

    <Grid Height="Auto" Width="Auto">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <GroupBox Name="GeneralGroupBox" Width="Auto" Header="General" Grid.Column="0" Grid.Row="0">
            <GroupItem>
                <UniformGrid Columns="2" Width="Auto">
                    <Label Name="StatusTimeoutLabel" Margin="0,0,6,0">StatusTimeout</Label>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <TextBox Name="StatusTimeoutBox" VerticalAlignment="Center" Grid.Column="0" TextChanged="StatusTimeoutBox_OnTextChanged">2</TextBox>
                        <TextBlock Text="{Binding SecondsString}" VerticalAlignment="Center" Grid.Column="1" Margin="5,0"/>
                    </Grid>
                    <Label Name="UseLocalCoordsLabel">UseLocalCoords</Label>
                    <CheckBox Name="UseLocalCoordsBox" VerticalAlignment="Center"/>
                    <Label Name="SoundOnLabel">Sound</Label>
                    <CheckBox Name="SoundOnBox" VerticalAlignment="Center" Checked="SoundOnBox_OnChecked" Unchecked="SoundOnBox_OnUnchecked"/>
                </UniformGrid>
            </GroupItem>
        </GroupBox>
        <WrapPanel Grid.Row="1" Grid.Column="0" Margin="5,5,0,5">
            <Button Name="SaveButton" Style="{StaticResource ButtonStyle}" Click="SaveButton_OnClick">Save</Button>
            <Button Name="CancelButton" Style="{StaticResource ButtonStyle}" Margin="5,0,0,0" Click="CancelButton_OnClick">Cancel</Button>
            <Label Name="StatusLabel" Margin="5,0,0,0" VerticalAlignment="Center">status</Label>
        </WrapPanel>
    </Grid>
</controls:MetroWindow>
